home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global quitflag, musicFile
- set musicFile to "@:AVFiles:MusicIn.aif"
- set quitflag to 0
- setCsrs()
- when keyDown then checkKey
- end
-
- on checkKey
- global musicFile
- if the key = "s" then
- if not soundBusy(1) then
- set the volume of sound 1 to 130
- sound playFile 1, musicFile
- else
- if the volume of sound 1 <> 0 then
- set the volume of sound 1 to 0
- else
- set the volume of sound 1 to 130
- end if
- end if
- end if
- end
-
- on HandPointer
- if rollOver(9) then
- set the castNum of sprite 21 to the number of cast "Pointer"
- else
- set the castNum of sprite 21 to the number of cast "PointerBox"
- end if
- if rollOver(10) then
- set the castNum of sprite 22 to the number of cast "Pointer"
- else
- set the castNum of sprite 22 to the number of cast "PointerBox"
- end if
- if rollOver(11) then
- set the castNum of sprite 23 to the number of cast "Pointer"
- else
- set the castNum of sprite 23 to the number of cast "PointerBox"
- end if
- if rollOver(12) then
- set the castNum of sprite 24 to the number of cast "Pointer"
- else
- set the castNum of sprite 24 to the number of cast "PointerBox"
- end if
- updateStage()
- end
-
- on HandPointerLeft
- if rollOver(9) then
- set the castNum of sprite 21 to the number of cast "Pointer"
- else
- set the castNum of sprite 21 to the number of cast "PointerBox"
- end if
- if rollOver(10) then
- set the castNum of sprite 22 to the number of cast "PointerLeft"
- else
- set the castNum of sprite 22 to the number of cast "PointerBox"
- end if
- if rollOver(11) then
- set the castNum of sprite 23 to the number of cast "Pointer"
- else
- set the castNum of sprite 23 to the number of cast "PointerBox"
- end if
- if rollOver(12) then
- set the castNum of sprite 24 to the number of cast "PointerLeft"
- else
- set the castNum of sprite 24 to the number of cast "PointerBox"
- end if
- updateStage()
- end
-
- on quitTest
- global quitflag
- if not rollOver(24) then
- set the castNum of sprite 24 to the number of cast "whitehand"
- puppetSprite(24, 0)
- exit
- end if
- if quitflag = 1 then
- exit
- end if
- puppetSprite(24, 1)
- set the castNum of sprite 24 to the number of cast "Redhand"
- updateStage()
- repeat while rollOver(24)
- if the mouseDown then
- set quitflag to 1
- sound fadeOut 1, 3 * 60
- go(the frame + 1)
- exit repeat
- end if
- end repeat
- end
-